package com.springboot.blog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot.blog.beans.Blog;
import com.springboot.blog.beans.BlogGonggao;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BlogGgDao extends BaseMapper<BlogGonggao> {

    List<BlogGonggao> queryGgForItems(@Param(value = "begin") int begin, @Param(value = "pageSize") Integer pageSize);

    //查询公告前5条（降序）
    List<BlogGonggao> findGongao();
}
